package nrpc.impl;

import nrpc.annotation.Asynchronized;
import nrpc.message.meta.ServerEntry;

public interface RegisterHandler {

	long register(String url, ServerEntry serverEntry);

	@Asynchronized(callback = false)
	void cancelService(String url, long id);

	@Asynchronized(callback = false)
	void pulse(String url, long id);

	long subscribe(String url, String host, int port);

	@Asynchronized(callback = false)
	void cancelSubscribe(String url, long id);
	
}
